class ApplicationController < ActionController::Base
  protect_from_forgery
  def authorize
    unless session[:user_id]
      flash[:notice] = "Please log in"
      redirect_to login_url
    else
      @current_userid = session[:user_id]
    end
  end
end
